<?php
  require "./tool_maths.php";
$v1 = array(0,0,0);
$v2 = array(1,1,0);
$base = array(0,1,2);
$len = count($base);

$res = Tool_maths::get_IM($v1,$v2,$base,$len);
echo $res;
die();


$array_x=array(0,1,2,3,4);
$array_y=array(0,1,2,3,4);

//echo tool_maths::ecart_type($array_x);

//echo tool_maths::regression_lineaire_simple($array_x,$array_y);

//$val=1234;
//echo Tool_maths::get_ten($val);

$prop_x=tool_maths::get_proportion_vector($array_x);
$prop_y=tool_maths::get_proportion_vector($array_y);

$rec_y=tool_maths::get_vector_recence($prop_y);
$rec_x=tool_maths::get_vector_recence($prop_x);

print_r($rec_x);
print_r($rec_y);


?>
